package com.pxxy.mall.search.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author zhangjj
 * @since 2024/1/27
 */


@Data
public class SearchParam implements Serializable {
    /**
     * 完整的 url 参数
     * keyword=小米&sort=saleCount_desc/asc&hasStock=0/1&skuPrice=400_1900&brandId=1
     * &catalogId=1&attrs=1_3G:4G:5G&attrs=2_骁龙 845&attrs=4_高清屏
     */

    private String keyword; //页面传递过来得全文匹配关键字

    private Long catalog3Id;

    private String sort; //排序条件

    private Integer hasStock = 1; //是否有货  1表示有库存，0表示无库存

    private String skuPrice; //价格区间
    private List<Long> brandId;  //品牌id

    private List<String> attrs; //按照属性经行筛选

    private Integer pageNum = 1;//页码


}
